package com.simdo.g768.Bean;

import com.simdo.g768.R;

public class ImsiBean {

    int state; // 定位标志
    String imsi;
    String arfcn;
    String pci;
    long latestTime;
    long firstTime;
    int lossCount;
    int upCount;
    int phone_type;
    int rsrp;
    int cellId;
	String notes;
	int icon;
    boolean check;

    public boolean isCheck() {
        return check;
    }

    public void setCheck(boolean check) {
        this.check = check;
    }

    public int getIcon() {
        return icon;
    }

    public void setIcon(int icon) {
        this.icon = icon;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    /*
    * typedef enum {
        UNKNOWN_PHONE, MI_11, IPHONE_12, IPHONE_13, IPHONE_14, PHONE_TYPE_NUM,
	} phone_type_e;
	* */
    public int getPhone_type() {
        return phone_type;
    }

    public void setPhone_type(int phone_type) {
        this.phone_type = phone_type;
    }

    public int getUpCount() {
        return upCount;
    }

    public void setUpCount(int upCount) {
        this.upCount = upCount;
    }

    public int getRsrp() {
        return rsrp;
    }

    public void setRsrp(int rsrp) {
        this.rsrp = rsrp;
    }

    public ImsiBean(int state, String imsi, String arfcn, String pci, int rsrp, long time, int cellId, int phone_type, String notes) {
        this.state = state;
        this.imsi = imsi;
        this.arfcn = arfcn;
        this.pci = pci;
        this.firstTime = time;
        this.latestTime = time;
        this.cellId = cellId;
        this.lossCount = 0;
        this.upCount = 1;
        this.phone_type = phone_type;
        this.rsrp = rsrp;
        this.notes = notes;
        String tracePlmn = imsi.substring(0, 5);
        switch (tracePlmn) {
            case "46011":
            case "46003":
            case "46005":
            case "46012":
                icon = R.mipmap.telecom_icon;
                break;
            case "46000":
            case "46002":
            case "46007":
            case "46004":
            case "46008":
            case "46013":
                icon = R.mipmap.mobile_icon;
                break;
            case "46001":
            case "46009":
            case "46006":
            case "46010":
                icon = R.mipmap.unicom_icon;
                break;
            case "46015":
                icon = R.mipmap.sva_icon;
                break;
            case "45400":
                icon = R.mipmap.csl_icon;
                break;
            case "45403":
                icon = R.mipmap.hk_icon;
                break;
            case "45406":
                icon = R.mipmap.smt_icon;
                break;
            case "45412":
                icon = R.mipmap.xg_mobile_icon;
                break;
            default:
                icon = R.mipmap.other_icon;
                break;
        }
    }

    public int getCellId() {
        return cellId;
    }

    public void setCellId(int cellId) {
        this.cellId = cellId;
    }

    public long getFirstTime() {
        return firstTime;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getImsi() {
        return imsi;
    }

    public int getLossCount() {
        return lossCount;
    }

    public void setLossCount(int lossCount) {
        this.lossCount = lossCount;
    }

    public void setImsi(String imsi) {
        this.imsi = imsi;
    }

    public String getArfcn() {
        return arfcn;
    }

    public void setArfcn(String arfcn) {
        this.arfcn = arfcn;
    }

    public String getPci() {
        return pci;
    }

    public void setPci(String pci) {
        this.pci = pci;
    }

    public long getLatestTime() {
        return latestTime;
    }

    public void setLatestTime(long latestTime) {
        this.latestTime = latestTime;
    }
}
